package com.sun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author SunRui
 * @since 2024-12-11
 */
@Getter
@Setter
@TableName("squad")
@Schema(name = "Squad", description = "")
public class Squad {

    @Schema(description = "小组编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "小组名称")
    @TableField("name")
    private String name;

    @Schema(description = "成员数量")
    @TableField("num")
    private Integer num;

    @Schema(description = "积分")
    @TableField("integral")
    private Integer integral;

    @Schema(description = "口号")
    @TableField("slogan")
    private String slogan;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    @Override
    public String toString() {
        return "Squad{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", num=" + num +
                ", integral=" + integral +
                ", slogan='" + slogan + '\'' +
                '}';
    }
}
